package com.example.petstoreservice.mapper;

import com.example.petstoreservice.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    User findByUsername(String username);
    int insertUser(User user);
    int updatePassword(String username,String password);
    int updateUser(User user);
    int deleteUser(@Param("username") String username);

}
